<template>
  <div>
    <i
      :class="{ 'el-icon-s-unfold': !opend, 'el-icon-s-fold': opend }"
      @click="toggleOpen()"
    ></i>
  </div>
</template>

<script>
import { mapState, mapMutations } from "vuex";
export default {
  computed: {
    // 将 vuex 中 state 里面的 opened 属性 映射 到 当期组件
    ...mapState(["opened"]),
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
</style>
